package com.hjj.AppIO;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class MyApp8 {
    public static void main(String[] args) {
        String temp = "abcdefghijklmnopqrstuvwxyz";
        String path = "F:\\IO\\b.txt";

        try {
            FileOutputStream fileOutputStream = new FileOutputStream(path);
            BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);

            byte[] bytes = temp.getBytes();

            bufferedOutputStream.write(bytes, 0, bytes.length);

            bufferedOutputStream.flush();
            bufferedOutputStream.close();
            fileOutputStream.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
